package com.ruoyi.djb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.djb.mapper.DjbChargeGradientMapper;
import com.ruoyi.djb.domain.DjbChargeGradient;
import com.ruoyi.djb.service.IDjbChargeGradientService;
import com.ruoyi.common.core.text.Convert;

/**
 * 充值列表Service业务层处理
 * 
 * @author xxd
 * @date 2025-03-04
 */
@Service
public class DjbChargeGradientServiceImpl implements IDjbChargeGradientService 
{
    @Autowired
    private DjbChargeGradientMapper djbChargeGradientMapper;

    /**
     * 查询充值列表
     * 
     * @param id 充值列表主键
     * @return 充值列表
     */
    @Override
    public DjbChargeGradient selectDjbChargeGradientById(Integer id)
    {
        return djbChargeGradientMapper.selectDjbChargeGradientById(id);
    }

    /**
     * 查询充值列表列表
     * 
     * @param djbChargeGradient 充值列表
     * @return 充值列表
     */
    @Override
    public List<DjbChargeGradient> selectDjbChargeGradientList(DjbChargeGradient djbChargeGradient)
    {
        return djbChargeGradientMapper.selectDjbChargeGradientList(djbChargeGradient);
    }

    /**
     * 新增充值列表
     * 
     * @param djbChargeGradient 充值列表
     * @return 结果
     */
    @Override
    public int insertDjbChargeGradient(DjbChargeGradient djbChargeGradient)
    {
        return djbChargeGradientMapper.insertDjbChargeGradient(djbChargeGradient);
    }

    /**
     * 修改充值列表
     * 
     * @param djbChargeGradient 充值列表
     * @return 结果
     */
    @Override
    public int updateDjbChargeGradient(DjbChargeGradient djbChargeGradient)
    {
        return djbChargeGradientMapper.updateDjbChargeGradient(djbChargeGradient);
    }

    /**
     * 批量删除充值列表
     * 
     * @param ids 需要删除的充值列表主键
     * @return 结果
     */
    @Override
    public int deleteDjbChargeGradientByIds(String ids)
    {
        return djbChargeGradientMapper.deleteDjbChargeGradientByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除充值列表信息
     * 
     * @param id 充值列表主键
     * @return 结果
     */
    @Override
    public int deleteDjbChargeGradientById(Integer id)
    {
        return djbChargeGradientMapper.deleteDjbChargeGradientById(id);
    }
}
